package net.unison.thread;

import java.util.*;

public class PutThread implements Runnable {

	public void run() {
		int i = 1;
		while (true) {
			ValueBean value = new ValueBean();
			Set<ValueBean> set = new HashSet<ValueBean>();
			set.add(value);
			System.out.println("create " + i + " valueBean and put to HashSet!");
			i++;
		}
	}

	public static void main(String args[]) {
		Thread myThread = new Thread(new PutThread());
		myThread.start();
	}
}
